﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;

namespace hxweditor
{
	public class MenuTool
	{
        //===============================编辑器窗口=======================================

		[MenuItem ("工具菜单/打包工具", false, 1)]
		static void menu0 ()
		{
			AssetBundleEditor.OpenWindow ();
		}

		[MenuItem ("工具菜单/场景分割编辑器", false, 1)]
		static void menu1 ()
		{
			SceneFormationEditor.OpenWindow ();
		}

		[MenuItem ("工具菜单/场景预览编辑器", false, 1)]
		static void menu2 ()
		{
			ScenePreViewEditor.OpenWindow ();
		}

		[MenuItem ("工具菜单/技能编辑器", false, 1)]
		static void menu3 ()
		{
			SkillEffectEditor.OpenWindow ();
		}

        [MenuItem("工具菜单/MD5生成工具", false, 1)]
        static void menu4()
        {
            MD5BuildEditor.OpenWindow();
        }

		[MenuItem("工具菜单/静态NPC编辑工具",false,1)]
		static void menu5()
		{
			StaticNpcBuildEditor.OpenWindow ();
		}

        [MenuItem("工具菜单/技能编辑数据预览窗口", false, 1)]
        static void menu6()
        {
            PreviewSkillDataEditor.OpenWindow();
        }

        //=========================== 快捷键指令=====================================


		[MenuItem("快捷命令/打开Game场景 &1",false,2)]
		static void command0(){
			string path = "Assets/Scene/Game.unity";
			EditorSceneManager.OpenScene (path,OpenSceneMode.Single);
		}

		[MenuItem("快捷命令/打开TestScene场景 &2",false,2)]
		static void command1(){
			string path = "Assets/Scene/TestScene.unity";
			EditorSceneManager.OpenScene (path,OpenSceneMode.Single);
		}

		[MenuItem("快捷命令/打开GUI场景 &3",false,2)]
		static void command2(){
			string path = "Assets/Scene/GUI.unity";
			EditorSceneManager.OpenScene (path,OpenSceneMode.Single);
		}


	}
}
